#!/bin/bash
#Script:worker command
#Version:3.2
#Writer:Liky
#Time:2014-09-02

function check(){
  count=`ps -ef |grep $1 |grep -v "grep" |wc -l`
  if [ 0 == $count ];then
	echo hello > /home/hello.txt
	php index.php Api/CodePay/acceptData
	
  fi
}
 
check acceptData